package com.fjrcloud.dao;

import com.fjrcloud.entity.HousingStructure;
import com.fjrcloud.entity.HousingStructureLevel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by shengjian.lin on 17-1-18.
 */
public interface HousingStructureLevelDao extends BaseDao<HousingStructureLevel,Integer> {
    Page<HousingStructureLevel> findByValidOrderByCreateTimeAsc(boolean valid, Pageable pageable);
    Page<HousingStructureLevel> findByStructureAndValidOrderByCreateTimeAsc(HousingStructure structure, boolean valid, Pageable pageable);
}

